# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=frei0r-plugins
pkgver=2.3.2
pkgrel=0
pkgdesc="A minimalistic plugin API for video sources and filters"
url="https://frei0r.dyne.org/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-or-later"
depends_dev="$pkgname"
makedepends="
	cairo-dev
	cmake
	gavl-dev
	samurai
	"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/dyne/frei0r/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/frei0r-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
cd17e4dfbf9575f1d25f925f3312c7243694cd4ef0a72b09c6cc346a1493fcb3cd8786094c7274a581f50d8e0b747c0658833d1bf9a9fb72783e34b3755392fb  frei0r-plugins-2.3.2.tar.gz
"
